package com.java.action;

import java.util.List;

import com.java.service.IDeptService;
import com.opensymphony.xwork2.ActionSupport;
import com.training.pojo.chengshu.UUser;

public class GetMgrListAction extends ActionSupport{

	private IDeptService deptService;
	private List<UUser> mgrlist;
	
	public String execute(){
		mgrlist = deptService.userList();
		//System.out.println(mgrlist.size()+"userlisttttttt");
		return "success";
	}

	public IDeptService getDeptService() {
		return deptService;
	}

	public void setDeptService(IDeptService deptService) {
		this.deptService = deptService;
	}

	public List<UUser> getMgrlist() {
		return mgrlist;
	}

	public void setMgrlist(List<UUser> mgrlist) {
		this.mgrlist = mgrlist;
	}
	
	
}
